import request from '@/utils/request'

export function listCata (data) {
  return request({
    url: '/data/market/cata/list',
    method: 'get',
    params: data
  })
}

export function getCata (id) {
  return request({
    url: '/data/market/cata/' + id,
    method: 'get'
  })
}

export function delCata (id) {
  return request({
    url: '/data/market/cata/' + id,
    method: 'delete'
  })
}

export function delCatas (ids) {
  return request({
    url: '/data/market/cata/batch/' + ids,
    method: 'delete'
  })
}

export function addCata (data) {
  return request({
    url: '/data/market/cata',
    method: 'post',
    data: data
  })
}

export function updateCata (data) {
  return request({
    url: '/data/market/cata/' + data.id,
    method: 'put',
    data: data
  })
}

export function bindCataResource (data) {
  return request({
    url: '/data/market/cata/bindCataResource',
    method: 'post',
    data: data
  })
}

export function getCataResource (data) {
  return request({
    url: '/data/market/cata/page',
    method: 'get',
    params: data
  })
}
